using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "ItemManaPotion", menuName = "游戏SO文件/物品/法力药水")]
public class ItemManaPotion : InventoryItem
{
    [Header("配置")]
    public float ManaValue;


    public override bool UseItem()
    {
        if (GameManager.instance.Player.PlayerMana.CanRestoreMana())
        {
            GameManager.instance.Player.PlayerMana.RestoreMana(ManaValue);
            return true;
        }

        return false;
    }
}
